Skip to content

feat(harness): run allowlisted tools in the background per call - #4534

Open
juruoO-o wants to merge 11 commits into
agentscope-ai:mainfrom
juruoO-o:feat/harness-background-tool-call
Open

juruoO-o wants to merge 11 commits into
agentscope-ai:mainfrom
juruoO-o:feat/harness-background-tool-call

Conversation

@juruoO-o

@juruoO-o juruoO-o commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

What changes

  • Harness hosts can allow selected ordinary tools to accept background and wake_on_completion on each call. Accepted calls use the usual permission checks and tool execution infrastructure. A mixed batch retains its foreground results and the background receipt.
  • Standalone Harness delivers completed work through the existing inbox and Gateway wakeup path. Durable Harness atomically stages supported routes and returns a receipt under the stable execution ID. The real outcome remains queryable and reaches a later reasoning boundary.
  • A wake policy governs whether an idle parent gets a new Turn. Completion always remains available, and a background completion cannot resolve an unrelated interaction.

The completion inbox and wakeup race changes are shared with #4530. This branch carries only the common foundation and the ordinary-tool feature, so either PR has a complete diff against main.

Verification

  • Focused Core, Harness, Durable adapter and queued execution regressions.
  • Four-JVM recovery test covering a Brain exit after queue admission, recovery with the original receipt, duplicate Hands delivery and one additional wakeup.
  • Independently ran the shared PostgreSQL workload with separate JVMs for allowed, disabled and host-suppressed wakeups, and verified a main-produced legacy request still has the same canonical digest.
  • Documentation tests, strict Mintlify validation and broken-link check.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 08:16
@mintlify

mintlify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit c13baf7.

Approve preview

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@chickenlj chickenlj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait for approval

@juruoO-o

juruoO-o commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @chickenlj, I resolved the conflicts with main in c13baf7. A Java 17 clean verify passed for all 114 modules on our Linux ECS test host, including the cross-JVM recovery tests. Could you clarify whose approval is needed and whether there is anything else to address before this can land?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants